/**   
* @Title: Application.java
* @Package org.xaoyaoyao.cloud.job
* @Description: TODO
* @author xaoyaoyao
* @date Feb 11, 2019 4:22:38 PM
* @version V1.0   
*/
package org.xaoyaoyao.cloud.job;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.xaoyaoyao.cloud.jpa.repository.support.CustomizedRepositoryFactoryBean;

import lombok.extern.slf4j.Slf4j;

/**
 * @ClassName: Application
 * @Description: TODO
 * @author xaoyaoyao
 * @date Feb 11, 2019 4:22:38 PM
 * 
 */
@Slf4j
@Component
@SpringBootApplication
@EnableAutoConfiguration
@EnableTransactionManagement
@ComponentScan(basePackages = { "org.xaoyaoyao.cloud" })
@EnableJpaAuditing
@EnableJpaRepositories(repositoryFactoryBeanClass = CustomizedRepositoryFactoryBean.class)
public class Application {

	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
		log.warn(">>>>>>>> 定时器已启动了...");
	}
}
